package com.alibaba.csp.sentinel.dashboard.rule;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.csp.sentinel.datasource.Converter;

/**
* @Description: TODO
* @author blueice
* @date 2021年3月25日 下午3:02:05
*
*/
public abstract class AbstractDynamicRuleProviderAndPublisher<T> implements DynamicRuleProvider<List<T>>,DynamicRulePublisher<List<T>>
{
    @Autowired
    protected Converter<String, List<T>> decoder;
    @Autowired
    protected Converter<List<T>,String> encoder;
    
    protected abstract String ruleSuffix();
    
}
